
function getDateCh(){
    let date = new Date();
    let year = date.getFullYear();
    let month = date.getMonth()+1;
    let day = date.getDate();
    let hour = date.getHours();
    let minute = date.getMinutes();
    let second = date.getSeconds();

    let rt = year+'年'+month+'月'+day+'日 '+hour+':'+minute+':'+second;
    return rt;
}

function getDate(){
    let date = new Date();
    let year = date.getFullYear();
    let month = date.getMonth()+1;
    let day = date.getDate();
    let hour = date.getHours();
    let minute = date.getMinutes();
    let second = date.getSeconds();

    let rt = year+'-'+month+'-'+day+' '+hour+':'+minute+':'+second;
    return rt;
}

exports.getDate = getDate;
exports.getDateCh = getDateCh;